Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update away from deprecated GitLab field #3924

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tas50
Copy link
Member

@tas50 tas50 commented May 5, 2024

Keep our field the same, but avoid this deprecated call

Copy link
Contributor

github-actions bot commented May 5, 2024

Test Results

3 209 tests  ±0   3 205 ✅ ±0   1m 45s ⏱️ -4s
  379 suites ±0       4 💤 ±0 
   29 files   ±0       0 ❌ ±0 

Results for commit a4a6023. ± Comparison against base commit 40ab0ce.

♻️ This comment has been updated with latest results.

@@ -39,7 +39,7 @@ func initGitlabGroup(runtime *plugin.Runtime, args map[string]*llx.RawData) (map
args["requireTwoFactorAuthentication"] = llx.BoolData(grp.RequireTwoFactorAuth)
args["preventForkingOutsideGroup"] = llx.BoolData(grp.PreventForkingOutsideGroup)
args["mentionsDisabled"] = llx.BoolData(grp.MentionsDisabled)
args["emailsDisabled"] = llx.BoolData(grp.EmailsDisabled)
args["emailsDisabled"] = llx.BoolData(!grp.EmailsEnabled)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also add the new field and mark the old one as deprecated

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to just update the call under the hood and keep our fields the same. I don't think we need to match our fields to their underlying API 1:1 in every case. The fields are named pretty consistently which is nice and it wouldn't benefit the user to switch them unless they remove all the "disabled" calls in the future.

chris-rock
chris-rock previously approved these changes May 5, 2024
@chris-rock chris-rock requested review from chris-rock and removed request for chris-rock May 5, 2024 18:28
@chris-rock chris-rock dismissed their stale review May 5, 2024 18:29

Needs the migration first

Keep our field the same, but avoid this deprecated call

Signed-off-by: Tim Smith <[email protected]>
@tas50 tas50 force-pushed the tas50/fix_deprecated_gitlab branch from 03302db to a4a6023 Compare January 24, 2025 17:28
@tas50 tas50 requested a review from chris-rock January 24, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants